package peer;


public class PeerFactory implements IPeerFactory {

    @Override
    public IPeerClient makePeerClient(String user_name ,String human_user_name ,String passwd, String bootstrap_ip,
			short bootstrap_port, String email) {
		PeerClient client = new PeerClient(user_name, human_user_name, passwd, bootstrap_ip, bootstrap_port, this, email);
		return client;
	}

    @Override
    public IBootProtocol makeBootProtocol(String user_name, String human_user_name, String passwd,
			String bootstrap_ip, short bootstrap_port, String email) {
		SimpleBootProtocol protocol = new SimpleBootProtocol(user_name, human_user_name, passwd, bootstrap_ip, bootstrap_port, email);
		return protocol;
	}
}
